/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package it.txt.access.capability.spi.resource.txt.model;

import it.txt.access.capability.spi.resource.exception.URISyntaxException;
import it.txt.access.capability.spi.resource.model.ICapabilityResourceIDModel;
import java.io.File;
import java.net.URI;

/**
 *
 * @author seccia
 */
public class TXTResourceIDModel implements ICapabilityResourceIDModel{

    private File txtFile;

    public File getTxtFile() {
        return txtFile;
    }

    public void setTxtFile(File txtFile) {
        this.txtFile = txtFile;
    }

    public URI toURI() throws URISyntaxException{
        try {
            return this.txtFile.toURI();
        } catch (Exception e) {
            throw new URISyntaxException(e.getMessage(), e);
        }
    }
}
